<%-- 
    Document   : field_entry
    Created on : 22 พ.ค. 2557, 16:50:55
    Author     : KTB_User
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Field Page</title>
    </head>
    <body>
        <br/>
        <h2>Field Information</h2>
        <br/>
        <form:form method="POST" action="${mode_action}">
            <form:hidden path="id"/>
            <form:hidden path="activityId"/>
            <table>
                <tr>
                    <td><form:label path="name">Name</form:label></td>
                    <td><form:input path="name" size="30"/></td>
                </tr>
                <tr>
                    <td><form:label path="FLabel">Label</form:label></td>
                    <td><form:input path="FLabel" size="30"/></td>
                </tr>
                <tr>
                    <td><form:label path="FType">Type</form:label></td>
                    <td><form:select path="FType">
                            <form:options items="${ftypes}"/>
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td><form:label path="FOption">Option</form:label></td>
                    <td><form:input path="FOption" size="30"/></td>
                </tr>
                <tr>
                    <td><form:label path="description">Description</form:label></td>
                    <td><form:textarea path="description" cols="40" rows="5"/></td>
                </tr>
                <tr>
                    <td><form:label path="ref">Reference</form:label></td>
                    <td><form:input path="ref" size="30"/></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Submit"/>
                    </td>
                </tr>
            </table>  
        </form:form>
    </body>
</html>